home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / TGKI-109 / Games / agent_platformer.swf / scripts / frame_1 / DoAction.as
Text File  |  2010-11-09  |  455b  |  19 lines

  1. stop();
  2. once = false;
  3. onEnterFrame = function()
  4. {
  5.    myLoaded = Math.round(getBytesLoaded());
  6.    myTotal = Math.round(getBytesTotal());
  7.    myPercent = myLoaded / myTotal;
  8.    myText = Math.round(myPercent * 100) + "%";
  9.    bar.gotoAndStop(Math.round(myPercent * 100));
  10.    if(myLoaded == myTotal and once == false)
  11.    {
  12.       once = true;
  13.       nextFrame();
  14.    }
  15. };
  16. var hide = new ContextMenu();
  17. hide.hideBuiltInItems();
  18. _root.menu = hide;
  19.